package com.neusoft.pub.cloud.provider.driver;

import com.neusoft.pub.cloud.provider.entity.AuthInfo;

public class Secret {

    private final static ThreadLocal<AuthInfo> CONTEXT = new ThreadLocal<>();

    public static void putValue(AuthInfo authInfo) {
        CONTEXT.set(authInfo);
    }

    public static AuthInfo getInfo() {
        return CONTEXT.get();
    }

    public static void remove() {
        CONTEXT.remove();
    }

}
